package com.example.demo.mapper;

import com.example.demo.entity.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HospitalMapper {
    List<HospitalTypeInfo> findHospitalTypeInfo();

    List<HospitalAreaInfo> findHospitalAreaInfo();

    List<Hospital> findHospital();

    List<HospitalPointRank> findHospitalPointRank();

    List<HospitalPopularityRank> findHospitalPopularityRank();

    Hospital findHospitalByName(String name);

    void insertHospital(Hospital hospital);

    void addHospitalAreaInfo(String area);

    void addHospitalTypeInfo(String type);

    void insertHospitalPointRank(Hospital hospital);

    void insertHospitalPopularityRank(Hospital hospital);

    Hospital findHospitalById(int id);

    void reduceHospitalAreaInfo(String area);

    void reduceHospitalTypeInfo(String type);

    void updateHospital(Hospital hospital);

    HospitalPointRank findHospitalPointRankByname(String name);

    HospitalPopularityRank findHospitalPopularityRankByname(String name);

    void updateHospitalPointRank(Hospital hospital);

    void updateHospitalPopularityRank(Hospital hospital);

    void deleteHospitalById(int id);

    void deleteHospitalPointRankByName(String name);

    void deleteHospitalPopularityRankByName(String name);
}
